<?php
class Mwc_SystemPoint_Block_Expire_Edit_Form extends Mage_Adminhtml_Block_Widget_Form{
	protected function _prepareForm(){
        $form = new Varien_Data_Form();
 
        $fieldset = $form->addFieldset('edit_userpoint', array('legend' => Mage::helper('systempoint')->__('Expire Setting Details')));
        $fieldset->addField('number_of_days', 'text', array(
            'name'      => 'number_of_days',
            'title'     => Mage::helper('systempoint')->__('Number of days'),
            'label'     => Mage::helper('systempoint')->__('Number of days'),
            'required'  => true,
        ));
        $fieldset->addField('percent_lose', 'text', array(
            'name'      => 'percent_lose',
            'title'     => Mage::helper('systempoint')->__('Percent lost %'),
            'label'     => Mage::helper('systempoint')->__('Percent lost %'),
            'required'  => true,
        ));
        $fieldset->addField('expire_id', 'hidden', array(
            'name'      => 'id',
            'required'  => false,
        ));

 		$form->setMethod('post');
        $form->setUseContainer(true);
        $form->setId('edit_form');
        $form->setAction($this->getUrl('*/*/save'));
        $form->setValues(Mage::registry('frozen_expire')->getData());
        
        $this->setForm($form);
    }
}